<?php
/*
 * @Author: lokei
 * @Date: 2022-09-19 13:45:10
 * @LastEditors: lokei
 * @LastEditTime: 2022-11-02 14:54:05
 * @Description: 
 */
namespace App\Http\Controllers\Activity;

use App\Common\Tools\ResultTool;
use App\Http\Controllers\Controller;
use App\Models\Activity\ActivityModel;
use Illuminate\Http\Request;

class ContentController extends Controller
{
	public function set(Request $request)
	{
		$activity = ActivityModel::where('id', '=', $request->input('id'))->first();
		$activity->type = $request->input('type');
		$activity->pay_card_ids = $request->input('pay_card_ids');
		$activity->save();
		return ResultTool::success();
	}
}
